package com.dnjn.happiness.emo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDate;

/**
 * 团队历史每日平均值 留180天数据?对象 emo_team_avg_score_history
 * 
 * @author happiness
 * @date 2023-10-28
 */
@Schema(name = "EmoTeamAvgScoreHistory", description = "团队历史每日平均值 留180天数据?")
@Accessors(chain = true)
@Getter
@Setter
@TableName("emo_team_avg_score_history")
public class EmoTeamAvgScoreHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** PK */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    


    /** $column.columnComment */
    @Schema(description = "${comment}")
//    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private LocalDate currDate;

    /** 平均快乐值 */
    @Schema(description = "平均快乐值")
//    @Excel(name = "平均快乐值")
    private Long avgScore;

    /** 部门id */
    @Schema(description = "部门id")
//    @Excel(name = "部门id")
    private Long deptId;

    /** 是否删除|0-否 1-是|valid */
    @Schema(description = "是否删除|0-否 1-是|valid")
//    @Excel(name = "是否删除|0-否 1-是|valid")
    private String deleted;




    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("currDate", getCurrDate())
            .append("avgScore", getAvgScore())
            .append("deptId", getDeptId())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .append("version", getVersion())
            .toString();
    }
}
